package model.command;
import controller.Controller;
import controller.KeyListeners.KeyListenerSet;
import model.playable.structure.Structure;
/**
 *
 * @author joseph
 */
public class Heal extends StructureCommand{
    public Heal(Structure structure){
        super(structure);
    }
    /**
     *
     */
    @Override
    public void attachToListener() {
        getListeners().attachToEnterListener(clone());
    }
    /**
     *
     * @return
     */
    @Override
    public Heal clone() {
        return new Heal(getStructure());
    }
    /**
     *
     */
    @Override
    public void executeCommand() {
        ((Healable) getStructure()).heal();
    }
    @Override
    public String toString(){
        return "Heal";
    }
}
